<!doctype html>
<html>
<head>
	<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
	<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
	<%
		String path = request.getContextPath();
		String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	%>
	<%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
	<script type="text/javascript" src="${path}/html/js/js-jsp/pr/unit/unitOption.js?v=<%out.print(Math.random());%>"></script>
	<script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js"></script>
</head>
	<body>
		<div class="place">
			<span>当前位置：</span>
			<ul class="placeul">
				<li><a href="${path}/unit/index.do" id="aa" style="background: transparent; border: none">单位管理</a></li>
				<li>
					<c:if test="${null == unit.uId}">
						<a style="background: transparent; border: none;">添加单位</a>
					</c:if>
					<c:if test="${null != unit.uId}">
						<a style="background: transparent; border: none;">编辑单位</a>
					</c:if>
				</li>
			</ul>
		</div>
		<form id="operate_form" class="form" method="post" action="#">
			<div class="formbody">
				<div class="formtitle"><span>基本信息</span></div>
				<table id="unitDesc" align="center" border="0" width="100%" style="font-size: 12px;">
					<tr height="50px">
						<input type="hidden" name="uId" id="uId" value="${unit.uId}" />
						<td align="right">单位名称：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" name="unitName" id="unitName" data-options="required:true,prompt:'请输入单位名称',validType:'length[1,20]'" missingMessage="单位名称不能为空"  value="${unit.unitName}" style="width:255px; height: 32px">
						</td>
						<td align="right">单位类别：</td>
						<td align="left">
							<select class="select-commonDict" type="select" data-modelCode="PR" data-funCode="unitModel" defualt-value="${unit.unitModel}"
									name="unitModel" id="unitModel" style="width:255px; height: 32px" validType="selectNotEmpty['单位类别']"  editable="false">
							</select>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">单位性质：</td>
						<td align="left">
							<select class="select-commonDict" type="select" data-modelCode="PR" data-funCode="unitProperty" defualt-value="${unit.unitProperty}"
									name="unitProperty" id="unitProperty" style="width:255px; height: 32px" validType="selectNotEmpty['单位性质']"  editable="false">
							</select>
						</td>
						<td align="right">单位法人：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" data-options="prompt:'请输入单位法人',validType:['length[1,8]','name']" name="unitLeader" id="unitLeader" value="${unit.unitLeader}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right">社会统一信用代码：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" data-options="prompt:'请输入社会统一信用代码',validType:'length[1,16]'" name="unitOrgCode" id="unitOrgCode" value="${unit.unitOrgCode}" style="width:255px; height: 32px">
						</td>
						<td align="right">注册资金：</td>
						<td align="left">
							<input class="easyui-numberbox" type="text"  data-options="min:0,precision:2,max:100000000,prompt:'请输入单位注册资金',validType:'length[1,16]'" name="unitRegMoney" id="unitRegMoney" value="${unit.unitRegMoney}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right">成立时间：</td>
						<td align="left">
							<input class="easyui-datebox" name="unitBuildTime" data-options="prompt:'请输入单位成立时间'" editable="false" id="unitBuildTime" value="<fmt:formatDate value="${unit.unitBuildTime}" pattern="yyyy-MM-dd"/>" name="language" style="width:255px; height: 32px"  />
						</td>
						<td align="right">单位座机：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" name="unitSitePhone" id="unitSitePhone" data-options="prompt:'请输入单位座机',validType:'length[1,16]',validType:'phone'" value="${unit.unitSitePhone}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right">联系人：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" name="unitMgr" id="unitMgr" data-options="prompt:'请输入联系人',validType:['length[1,8]','name']" value="${unit.unitMgr}" style="width:255px; height: 32px">
						</td>
						<td align="right">联系人手机号：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" name="unitMgrPhone" id="unitMgrPhone" data-options="prompt:'请输入联系人手机号',validType:'length[1,11]',validType:'mobile'" value="${unit.unitMgrPhone}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right">单位传真：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" name="unitFix" id="unitFix" data-options="prompt:'请输入单位传真',validType:'length[1,16]',validType:'phone'" value="${unit.unitFix}" style="width:255px; height: 32px">
						</td>
						<td align="right">邮政编码：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" name="unitPostCode" data-options="prompt:'请输入单位邮政编码',validType:'postOffice'" id="unitPostCode" value="${unit.unitPostCode}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right">所在地址：</td>
						<td align="left">
							<input class="select-region" name="unitProvice" set-cityId="unitCity" set-districtId="unitDistrict" editable="false"
								   defualt-value="${unit.unitProvice}" defualt-show="-请选择-" style="width:82px; height: 30px" value="${unit.unitProvice}">
							<input class="easyui-combobox" name="unitCity" id="unitCity" editable="false"
								   value="${unit.unitCity}" defualt-show="-请选择-" style="width:82px; height: 30px">
							<input class="easyui-combobox" name="unitDistrict" id="unitDistrict"
								   value="${unit.unitDistrict}" defualt-show="-请选择-" style="width:82px; height: 30px">
						</td>
						<td align="right">网站站点：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" data-options="prompt:'请输入单位网站站点',validType:['length[1,100]','urlNoHttp']" name="unitSite" id="unitSite" value="${unit.unitSite}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right">地址详情：</td>
						<td align="left">
							<input class="easyui-textbox" type="text" data-options="prompt:'请输入单位地址详情',validType:'length[1,80]'" name="unitAddress" id="unitAddress" value="${unit.unitAddress}" style="width:255px; height: 32px">
						</td>
					</tr>
					<tr height="50px">
						<td align="right" valign="top">备注信息：</td>
						<td align="left">
							<input class="easyui-textbox" name="unitRemark" data-options="multiline:true ,prompt:'请输入备注信息',validType:'length[1,200]'" id="unitRemark" value="${unit.unitRemark}" style="width:255px;height:100px">
						</td>
					</tr>
				</table>
			</div>
		</form>
		<div class="formbody" style="margin-left: 33%;margin-top: 1%">
			<a id="optionUnit" class="easyui-linkbutton c1" style="width:120px; height: 35px">保存</a>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="${path}/unit/index.do" class="easyui-linkbutton c1" style="width:120px; height: 35px">取消</a>
		</div>
	</body>
</html>